home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
magic_ba.swf
/
scripts
/
DefineButton2_156
/
BUTTONCONDACTION on(keyPress Right).as
< prev
next >
Wrap
Text File
|
2010-11-09
|
639b
|
24 lines
on(keyPress "<Right>"){
nowshooting = eval("_root.ball" add _root.totalballs);
if(getProperty(nowshooting, _X) < 305)
{
setProperty(nowshooting, _X, getProperty(nowshooting, _X) + 25);
setProperty(_root.nextball, _X, getProperty(nowshooting, _X));
setProperty(_root.arrow, _X, getProperty(nowshooting, _X));
_root.startposition += 25;
tellTarget("_root.char")
{
play();
}
wheelturn = 1;
while(wheelturn < 9)
{
tellTarget("_root.wheel" add wheelturn)
{
play();
}
wheelturn++;
}
}
}